package dev.projectnightfall.network;

import dev.projectnightfall.thread.IThread;

/**
 * Manager of the various connections, packets, etc.
 */
public class NetworkManager implements IThread {

    private boolean loopThread = true;

    /**
     * Initialises the NetworkManager.
     */
    public void initialise() {
        Thread t = new Thread(this);
        t.start();
    }

    /**
     * Method called when .start() is called.
     */
    @Override
    public void run() {
        do {
        } while (loopThread);
    }

    /**
     * Halts the thread.
     */
    @Override
    public void stopThread() {
    }
}
